package router

import (
	"gitee.com/tang_q/gin-vue3-admin-api/api"
	"github.com/gin-gonic/gin"
)

func TangFamilyRoute() {
	RegisterRoute(func(rgPublic *gin.RouterGroup, rgAuth *gin.RouterGroup) {
		tangFamilyApi := api.NewTangFamilyApi()
		//rgPublicRole := rgPublic.Group("role").Use(func() gin.HandlerFunc {
		//	return func(c *gin.Context) {
		//		// 这里写公共接口的中间件
		//	}
		//}())
		//{
		//	 // 公开接口
		//}
		rgAuthFamily := rgAuth.Group("family")
		{
			rgAuthFamilyTangFamily := rgAuthFamily.Group("tang")
			{
				rgAuthFamilyTangFamily.POST("list", tangFamilyApi.GetFamilyTangList)
			}
		}
	})
}
